package com.feng.eduservice.service;

import com.feng.commonutils.R;
import com.feng.eduservice.entity.EduComment;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 评论 服务类
 * </p>
 *
 * @author fengge
 * @since 2023-03-29
 */
public interface EduCommentService extends IService<EduComment> {

    /**
     * 根据课程id分页查询评论
     * @param page
     * @param limit
     * @param courseId
     * @return
     */
    R getCommentPage(Long page, Long limit, String courseId);

    /**
     * 添加评论
     * @param request
     * @param eduComment
     * @return
     */
    R addComment(HttpServletRequest request, EduComment eduComment);
}
